/// <reference path="../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../Scripts/knockout-2.1.0.js" />

jQuery(document).ready(function () {
    var MyDomainNameViewModel = new DomainNameViewModel();
    ko.applyBindings(MyDomainNameViewModel, document.getElementById('AddDomainNameNode'));
    jQuery("#NewDomainNameForm").validate({
        submitHandler: function (form) {
            MyDomainNameViewModel.DomainName();
        },
        
				rules: {
					DomainNameID: {
					required: true, 
					digits: true
					},
					EmailDomain: {
					required: true, 
					},
					DomainDeny: {
					required: true, 
					},
					TS: {
					required: true, 
					digits: true
					},
				}
            
        
        

        
    });



    

    

    
});